{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %}{% block body %}
<div class="row">
    <div class="col-xs-1 col-sm-1 col-md-1 sidebar">
        <div class="user">
            <img src="{{static_url('images/ico-user-header.svg')}}">
            <h5>{{current_user['username']}}</h5>
            <a href="/auth/signout"><span class="glyphicon glyphicon-cog"title="用户中心"></span></a>&nbsp;
            <a href="/auth/signout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <ul class="nav nav-sidebar">
            <li title="首页">
                <a href="/home">
                    <i class="fa fa-home"></i>
                    <span class="hidden-sm hidden-xs text">首页</span>
                </a>
            </li>
            <li title="申请" class="active">
                <a href="/apply/my">
                    <i class="fa fa-clipboard"></i>
                    <span class="hidden-sm hidden-xs text">申请</span>
                </a>
            </li>
            <li title="应用">
                <a href="/app/my">
                    <i class="fa fa-cube"></i>
                    <span class="hidden-sm hidden-xs text">应用</span>
                </a>
            </li>
            <li title="数据">
                <a href="/data">
                    <i class="fa fa-archive"></i>
                    <span class="hidden-sm hidden-xs text">数据集</span>
                </a>
            </li>
            <li title="导出">
                <a href="/records/my">
                    <i class="fa fa-hdd-o"></i>
                    <span class="hidden-sm hidden-xs text">结果集</span>
                </a>
            </li>
        </ul>
    </div>
    <div class="col-xs-11 col-xs-offset-1 col-sm-11 col-sm-offset-1 col-md-11 col-md-offset-1 main">
        <div class="page-header">
            <h1>申请单</h1><small>这里列举的是申请单的细节<br>可以查看，也是数据申请的第一步<br></small>
        </div>
        <section>
            <div class="box">
                <a href="/apply/my" class="btn btn-default">
                    <i class="fa fa-angle-double-left"></i> 返回我的申请列表
                </a>
                <a href="/apply/drop/{{detail['_id']}}" class="btn btn-default">
                    <i class="fa fa-trash-o"></i> 放弃申请
                </a>
            </div>
            <div class="box">
                <div class="box-body">
                    <div class="table-responsive">
                        <h3>申请详情</h3>
                        <hr/>
                        <h4>项目诸元</h4>
                        <table class="table table-bordered table-striped">
                            <colgroup>
                                <col class="col-xs-2">
                                <col class="col-xs-4">
                                <col class="col-xs-2">
                                <col class="col-xs-4">
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th scope="row">
                                        <code>项目名称</code>
                                    </th>
                                    <td>{{detail['reseach']['title']}}</td>
                                    <th scope="row">
                                        <code>申请时间</code>
                                    </th>
                                    <td>{{date_format(detail['commenttime'])}}</td>
                                </tr>
                                <tr>
                                    <th scope="row">
                                        <code>申请者</code>
                                    </th>
                                    <td>{{detail['user']}}</td>

                                    <th scope="row">
                                        <code>最后更新时间</code>
                                    </th>
                                    <td>{{time_format(detail['updatetime'])}}</td>
                                </tr>
                            </tbody>
                        </table>
                        <h4>涉及数据</h4>
                        <table class="table table-bordered table-striped">
                            <colgroup>
                                <col class="col-xs-2">
                                <col class="col-xs-4">
                                <col class="col-xs-2">
                                <col class="col-xs-4">
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th scope="row">
                                        <code>数据集</code>
                                    </th>
                                    <td>{{detail['dataset']['title']}}</td>
                                    <th scope="row">
                                        <code>发布者</code>
                                    </th>
                                    <td>{{detail['dataset']['from']}}</td>
                                </tr>
                            </tbody>
                        </table>

                        <h4>申请诉求</h4>
                        <table class="table table-bordered table-striped">
                            <colgroup>
                                <col class="col-xs-2">
                                <col class="col-xs-8">
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th scope="row">
                                        <code>项目背景</code>
                                    </th>
                                    <td>{{detail['reseach']['background']}}</td>
                                </tr>
                                <tr>
                                    <th scope="row">
                                        <code>项目目标</code>
                                    </th>
                                    <td>{{detail['reseach']['target']}}</td>
                                </tr>
                                <tr>
                                    <th scope="row">
                                        <code>主要研究内容</code>
                                    </th>
                                    <td>{{detail['reseach']['background']}}</td>
                                </tr>
                                <tr>
                                    <th scope="row">
                                        <code>预期结果</code>
                                    </th>
                                    <td>{{detail['reseach']['expectation']}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>
{% end %}
